﻿using TomNet.App.Model.DTO;
using TomNet.SqlSugarCore.Entity;

 
namespace TomNet.App.Model.DB
{
    /// <summary>
    /// 合约
    /// </summary>
    public class Treaty : IdentityEntityBase<int>
    {
        /// <summary>
        /// 币种
        /// </summary>
        public ProductType BType { get; set; }
        /// <summary>
        /// 单位数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 商品单位 T/G/K/M/P
        /// </summary>
        public ProductUnit ProductUnit { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public float Price { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public float SumMoney { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public long BeginTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public long EndTime { get; set; }
        /// <summary>
        /// 收益
        /// </summary>
        public long Profit { get; set; }
    }
}
